/* eslint-disable eol-last */
/* eslint-disable indent */
/* eslint-disable strict */
'use strict';
module.exports = app => {
    class SquareController extends app.Controller {
        async square() {
            // 获取博客列表 pageSize 每页数据量
            const result = await this.service.blog.getSquareBlogList({ pageSize: 10 });
            await this.ctx.render('square.html', {
                blogList: result.blogList,
                count: result.count,
                pageSize: 10,
                pageIndex: 1,
            });
        }
    }
    return SquareController;
};